﻿using MediatR;
using SheepStorage.API.Baseclass;
using SheepStorage.Domain.Entity;

namespace SheepStorage.API.Application.Command.SheepPurchaseCommand
{
    public class SheepPurchaseCreateCommand:IRequest<Results<int>>
    {

        public List<PurchaseDTO>? PurchaseList { get; set; }

        
    }


    //羊只采购DTO
    public class PurchaseDTO
    {
        /// <summary>
        /// 采购员
        /// </summary>
        public string? PurchaseBuyer { get; set; }
        /// <summary>
        /// 采购日期
        /// </summary>
        public DateTime? PurchaseDate { get; set; }
        /// <summary>
        /// 羊只类型
        /// </summary>
        public int? PurchaseSheepType { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int? PurchaseCategory { get; set; }
        /// <summary>
        /// 核算单元
        /// </summary>
        public int? PurchaseAccountingUnit { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public int? ProviderId { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string? WareHouse { get; set; }
        /// <summary>
        /// 批次/耳号
        /// </summary>
        public string? OverBit { get; set; }
        /// <summary>
        ///  栋舍Id
        /// </summary>
        public int? BuildingManagementId { get; set; }
        /// <summary>
        /// 栏位Id
        /// </summary>
        public int? ColumnId { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string? PurchaseGender { get; set; }
        /// <summary>
        /// 阶段
        /// </summary>
        public string? PurchaseStage { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string? PurchaseGoodsName { get; set; }
        /// <summary>
        /// 标包
        /// </summary>
        public string? PurchaseStandardPackage { get; set; }
        /// <summary>
        /// 计量单位
        /// </summary>
        public string? PurchaseMeasure { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int? PurchaseAmount { get; set; }
        /// <summary>
        /// 只均单价
        /// </summary>
        public decimal? PurchaseOnlyEvenly { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal? PurchaseMoney { get; set; }
        /// <summary>
        /// 单价折扣
        /// </summary>
        public decimal? PurchaseDiscount { get; set; }
        /// <summary>
        /// 调整金额
        /// </summary>
        public decimal? PurchaseAdjustAmount { get; set; }
        /// <summary>
        /// 结算金额
        /// </summary>
        public decimal? PurchaseSettlementAmount { get; set; }
        /// <summary>
        /// 总重量
        /// </summary>
        public decimal? PurchaseTotalWeight { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? PurchaseRemark { get; set; }
        /// <summary>
        /// 栋舍名称
        /// </summary>
        public string? BuildingName { get; set; }
        /// <summary>
        /// 转入栏位名称
        /// </summary>
        public string? ColumnsName { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public int? IsDel { get; set; }
    }
}
